﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Taobao.Common
{
    public interface IProcessor
    {
        void Start();
        void Suspend();
        void Resume();
        void Stop();
    }

    public delegate void ProcessCompletedEventHandler(object sender, TaobaoProcessorEventArgs e);
    public delegate void ProcessStartedEventHanlder(object sender, TaobaoProcessorEventArgs e);
    public class TaobaoProcessorEventArgs : EventArgs
    {
        public TaobaoProcessorEventArgs()
            : base()
        {
        }
        public TaobaoProcessorEventArgs(short shopId, string shopName)
            : base()
        {
            ShopName = shopName;
            ShopID = shopId;
        }
        public string ShopName
        { get; set; }
        public short ShopID
        { get; set; }
    }
    public enum ProcessStatus
    {
        None,
        Started,
        Suspended,
        Resumed,
        Stoped
    }
}
